package com.lianniu.web.staff.service;

import com.fasterxml.jackson.databind.deser.Deserializers;
import com.lianniu.web.base.BaseResult;
import com.lianniu.web.staff.vo.Staff;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by Administrator on 2017-05-16.
 */
public interface StaffService {

    @Transactional
    BaseResult login(HttpServletRequest request, String username, String userpasswd,
                     String codeUuid, String code, int times);

    BaseResult insertSelective(Staff record);

    BaseResult selectByPrimaryKey(String id);

    BaseResult selectByLoginName(String loginName);

    BaseResult updateByPrimaryKeySelective(Staff record);

}
